package mindteck.store;

public class Item {
	private ItemBean itemBean;
	
	public Item(){
		
	}
	public Item(ItemBean itemBean){
		this.itemBean = itemBean;
	}
	public ItemBean getItemBean(){
		return itemBean;
	}

	public void calculateSubtotal(){
		itemBean.setSubtotal(itemBean.getUnitPrice() * itemBean.getQuantity());
	}
	
}
